/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function Machine(ip, infos, ram, disk){
    this.ip = ip;
    this.infos = infos;
    this.ram = ram;
    this.disk = disk;
    this.id = null;
    
    this.getId = function(){
        return this.id;
    };
    this.setId = function(id){
        this.id = id;
    };
    this.getSalle = function(){
        return "a faire";
    };
    this.setSalle = function(id){
//        this.id = id;
    };
    this.getIpAddress = function(){
        return this.ip;
    };
    this.setIpAddress = function(ip){
        this.ip = ip;
    };
    this.getInfos = function(){
        return this.infos;
    };
    this.setInfos = function(infos){
        this.infos = infos;
    };
    this.getRam = function(){
        return this.ram;
    };
    this.setRam = function(ram){
        this.ram = ram;
    };
    this.getDisk = function(){
        return this.disk;
    };
    this.setDisk = function(disk){
        this.disk = disk;
    };
    this.loadJson = function(json){
        this.ip = json["ip"];
        this.infos = json["infos"];
        this.ram = json["ram"];
        this.disk = json["disk"];
    }
}